import request from "@/utils/request";

// 查询客户跟踪列表
export function listBizCustomerShadowInfo(query) {
  return request({
    url: "/biz/bizCustomerShadowInfo/list",
    method: "get",
    params: query,
  });
}
export function mylistBizCustomerShadowInfo(query) {
  return request({
    url: "/biz/bizCustomerShadowInfo/mylist",
    method: "get",
    params: query,
  });
}

// 查询客户跟踪详细
export function getBizCustomerShadowInfo(id) {
  return request({
    url: "/biz/bizCustomerShadowInfo/" + id,
    method: "get",
  });
}

// 新增客户跟踪
export function addBizCustomerShadowInfo(data) {
  return request({
    url: "/biz/bizCustomerShadowInfo",
    method: "post",
    data: data,
  });
}

// 修改客户跟踪
export function updateBizCustomerShadowInfo(data) {
  return request({
    url: "/biz/bizCustomerShadowInfo",
    method: "put",
    data: data,
  });
}

// 删除客户跟踪
export function delBizCustomerShadowInfo(id) {
  return request({
    url: "/biz/bizCustomerShadowInfo/" + id,
    method: "delete",
  });
}

// 查询最大编号
export function findMaxSort() {
  return request({
    url: "/biz/bizCustomerShadowInfo/findMaxSort",
    method: "get",
  });
}
// 导出客户跟踪
export function exportBizCustomerShadowInfo(query) {
  return request({
    url: "/biz/bizCustomerShadowInfo/export",
    method: "get",
    params: query,
  });
}
